package com.heyun.utils;

import java.util.Map;


/**
 * 获取用户id信息
 */
public class ThreadLocalUtil {
    private static final ThreadLocal<Map<String, Object>> threadLocal = new ThreadLocal<>();

    public static void set(Map<String, Object> claims) {
        threadLocal.set(claims);
    }

    public static Map<String, Object> get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}